const webpack = require("webpack");
const isProduction = process.env.NODE_ENV === "production";

module.exports = {
  publicPath: isProduction ? "./" : "/",
  transpileDependencies: ["vuetify"],
  productionSourceMap: !isProduction,

  configureWebpack: {
    plugins: [
      new webpack.ProvidePlugin({
        "window.Quill": "quill/dist/quill.js",
        Quill: "quill/dist/quill.js",
      }),
    ],
  },

  lintOnSave: true,

  pluginOptions: {
    moment: {
      locales: ["zh", "en"],
    },
  },
};
